cmake_minimum_required(VERSION 2.8)

#REPLACE ALL 'OIL' OCCURENCES BY YOUR PLUGIN NAME
#AND ADAPT THE CODE BELOW TO YOUR OWN NEEDS!

option( INSTALL_QOIL_PLUGIN "Check to install qOIL plugin" OFF )

if (INSTALL_QOIL_PLUGIN)

#CloudCompare 'OIL' plugin
project( QOIL_PLUGIN )

#load necessary libraries (see qPCV for an example)
add_subdirectory (OIL_LIB)

#if the plugin is an 'OpenGL filter', uncomment the line below
#set( CC_OPENGL_FILTER ON BOOL)
include( ../CMakePluginTpl.cmake )

#set dependencies to necessary libraries (see qPCV for an example)
target_link_libraries( ${PROJECT_NAME} QOIL_LIB )
include_directories( ${QOIL_LIB_SOURCE_DIR} )



endif()
